<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html" %>
<%@ page import="javax.sql.*"%>
<%@ page import="model.*"%>

<html:html>
<head>
    <title>Applications by Reviewer</title>
</head>

<body>
<h1>Applications by Reviewer</h1>
<table cellpadding="10">
<tr>
	<td><b><u>Reviewers</u></b></td>		
	<td><b><u># of Apps Graded</u></b></td>	
	<td><b><u># of Apps Not Graded</u></b></td>
</tr>
<%
RowSet reviewersData = (RowSet) request.getAttribute("reviewersData");

while(reviewersData.next()){%>
	<tr>
	<td align="center"><%=reviewersData.getString("user_name")%></td>
	<td align="center">
        <a href="/CSE135_Project_struts/showApplicationsPage.do?reviewer=<%=reviewersData.getString("user_name")%>&graded=true" style="text-decoration:none">
			<%=reviewersData.getInt("graded_count")%>
		</a>
	</td>
	<td align="center">
        <a href="/CSE135_Project_struts/showApplicationsPage.do?reviewer=<%=reviewersData.getString("user_name")%>&graded=false" style="text-decoration:none">
			<%=reviewersData.getInt("ungraded_count")%>
		</a>
	</td>
	</tr>
<%
}
%>

</table>
</body>
</html:html>